package org.example.config;

import org.example.beans.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @Author: shubin_yao
 * @Date: 2022/03/30/23:02
 * @Description:
 */

@Component
@ComponentScan(basePackages = "com")
public class ApplicationContextConfig {

    @Bean
    public User user(){
        User user = new User(23, "zs");
        return user;
    }
}
